package com.cy.detectsys.constant;

import jakarta.annotation.PostConstruct;

import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class LocalPathContant {

    public static String BATH_PATH;
    public static String PROBE_PATH;

    private final Environment environment;

    public LocalPathContant(Environment environment) {
        this.environment = environment;
    }

    @PostConstruct
    public void init() {
        BATH_PATH = environment.getProperty("server.bathPath");
        PROBE_PATH = environment.getProperty("server.probePath");
    }

}